<%@ include file="include.jsp" %>

<h3>Maximum Capacity of Harvey Cedars Campus: ${totalBeds}</h3>

<ul>
<li> Beds Currently Available At Harvey Cedars:  ${totalBedsAvailable}</li>
<li> Guests Currently at Harvey Cedars:  ${totalGuests}</li>
</ul>

<h3>Dormitory</h3>

<c:if test='${not empty dormitoryList}'>
   <ul>
      <c:forEach var="dorm" items="${dormitoryList}">
         <li>
            <a href="dormitoryDetail.html?id=${dorm.id}">${dorm.name}</a> - (click for room details)
         </li>
         	<ul>
         		<li>number of rooms in ${dorm.name}: ${dorm.numberOfRooms}
         		</li>
         		<li>maximum capacity of ${dorm.name}: ${dorm.totalBeds}
             	</li>
             	<br>
         		<li>guests currently in ${dorm.name}: ${dorm.totalGuest}
        		 </li>
        		 <li>beds currently available in ${dorm.name}: ${dorm.bedsAvailable}
             	</li>
             </ul>
      <br>
             
      </c:forEach>
   </ul>
</c:if>
<a href="addDormitory.html">Add New Dormitory</a>
<br>
<a href="person.html">Go to person page</a>